import Main from '@/layout/main.vue'
import { RouteConfig } from 'vue-router'
interface IQuery {
    id: string | number
}
const routes = [
    {
        path: '/vision',
        name: 'vision',
        meta: { title: '视频' },
        redirect: '/vision/index',
        component: Main,
        children: [
            {
                path: '/vision/index',
                name: 'videoList',
                meta: {
                    title: '视频',
                    parentPath: '/vision',
                    icon: 'index',
                    permission: ['view']
                },
                component: () => import('@/views/vision/index.vue')
            },
            {
                path: '/vision/videoCollection',
                name: 'videoCollection',
                meta: {
                    title: '视频2',
                    parentPath: '/vision',
                    icon: 'icon_user_guanli',
                    permission: ['view'],
                    keepAlive: true
                },
                component: () => import('@/views/vision/videoCollection.vue')
            },
            // {
            //     path: '/vision/aideoaddlist',
            //     name: 'aideoaddlist',
            //     meta: {
            //         title: '用户详情',
            //         parentPath: '/vision',
            //         hidden: true,
            //         prevPath: '/vision/index'
            //     },
            //     component: () => import('@/views/vision/aideoaddlist.vue')
            // }
            {
                path: '/vision/aideoaddlist',
                name: 'aideoaddlist',
                meta: {
                    title: '用户详情',
                    parentPath: '/vision',
                    hidden: true,
                    prevPath: '/vision/index'
                },
                component: () => import('@/views/vision/aideoaddlist.vue')
            },
            {
                path: '/vision/videodetails',
                name: 'videoDetail',
                meta: {
                    title: '用户详情',
                    parentPath: '/vision',
                    hidden: true,
                    prevPath: '/vision/index'
                },
                component: () => import('@/views/vision/VideoDetail.vue')
            },
            {
                path: '/vision/videoepisodelist/:id',
                name: 'VideoEpisodeList',
                meta: {
                    title: '剧集',
                    parentPath: '/vision',
                    hidden: true,
                    prevPath: '/vision/index'
                },
                props: true,
                component: () => import('@/views/vision/VideoEpisode.vue')
            }
        ]
    }
]

export default routes
